package com.javasm.controller;

import com.javasm.common.http.AxiosResult;
import com.javasm.controller.base.BaseController;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.LinkedHashMap;
import java.util.Map;

import static com.javasm.common.dictionary.AfterinitContext.afdic;

@RestController
@RequestMapping("aftype")
@RequiredArgsConstructor//和@Autowired效果一样
public class AftersaleTypeController extends BaseController {

    /**
     * 售后数据字典表
     * @return
     */
    @GetMapping()
    public AxiosResult<Map<Integer, LinkedHashMap<Integer,String>>> dic(){

        return AxiosResult.success(afdic);
    }
}
